<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改用户</title>
<link href="/res/css/style.css" rel="stylesheet" type="text/css" />
<link href="/res/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/res/js/jquery.js"></script>
<script type="text/javascript" src="/res/js/select-ui.min.js"></script>
<script type="text/javascript" src="/res/js/lib/formvalid/FormValid.js"></script>
<link href="/res/js/lib/layer/skin/layer.css" rel="stylesheet" type="text/css" />
<link href="/res/js/lib/layer/skin/layer.ext.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/res/js/lib/layer/layer.js"></script>
<script type="text/javascript" src="/res/js/common/msgTools.js"></script>
<script type="text/javascript" src="/res/js/pages/system/roleEdit.js"></script>

<script type="text/javascript">
    $(document).ready(function(e) {
        $("select").uedSelect({});
    });    
</script>
</head>

<body style="overflow-x:hidden;min-width: auto;">
    <div class="formbody">

        <form action="/system/admin/password/change/save" method="post" onsubmit="return ( checkPwd2() && checkData(this) );">
                <div class="tabson">
                    <ul class="forminfo">
                        <li>
                            <label>当前密码: </label>
                            <input type="password" name="password" id="password" class="dfinput" valid="required|limit" style="width:150px;" />
                            <span id="errMsg_password" class="errMsg"><b>*</b>输入当前密码</span>
                        </li>
                        <li>
                            <label>新密码: </label>
                            <input type="password" name="newPassword" id="newPassword" class="dfinput" valid="required|limit" style="width:150px;" max="20" min="6" />
                            <span id="errMsg_newPassword" class="errMsg"><b>*</b>请输入新密码6~20位</span>
                        </li>
                        <li>
                            <label>确认新密码: </label>
                            <input onBlur="checkPwd2()" type="password" name="newPassword2" id="newPassword2" class="dfinput" valid="required|limit" style="width:150px;"  max="20" min="6" />
                            <span id="errMsg_newPassword2" class="errMsg"><b>*</b>两次密码要一致</span>
                        </li>
                        <li style="margin-top:50px;">
                            <input type="submit" value="保存" class="btn" />
                        </li>
                    </ul>
                    <script type="text/javascript">
                        function checkPwd2(){
                            if( $("#newPassword2").val() != $("#newPassword").val()){
                                 $("#errMsg_newPassword2").addClass("red");
                                 return false;
                            }
                            return true;
                        }
                    </script>
                </div>
        </form>
    </div>
    ${actionMsg}
</body>

</html>


